<%--
  Created by IntelliJ IDEA.
  User: zxw
  Date: 2021/3/18
  Time: 19:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>离职人员信息</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <script src="layui/layui.js"></script>
</head>
<!-- L2Dwidget.js L2D网页动画人物 -->
<script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script>
<script>
    L2Dwidget.init({
        "model": {
            "jsonPath": "https://unpkg.com/live2d-widget-model-koharu@1.0.5/assets/koharu.model.json",
            "scale": 1,
            "hHeadPos": 0.5,
            "vHeadPos": 0.618
        },
        "display": {"position": "right", "width": 250, "height": 300, "hOffset": 0, "vOffset": 0},
        "mobile": {"show": true, "scale": 0.5},
        "react": {"opacityDefault": 0.7, "opacityOnHover": 0.2}
    });
</script>
<body>
<div style="margin: 0 43% ;color: #4E5465;font-size: 50px ">离职员工</div>
<table class="layui-hide" id="test" lay-filter="test"></table>

<script>
    layui.use(['table', 'jquery'], function () {
        var $ = layui.jquery;
        var table = layui.table;


        $(function () {
            showTable();
        });

        function showTable() {
            table.render({
                elem: '#test'
                , url: '${pageContext.request.contextPath}/user/Resign'
                , cellMinWidth: 80
                , cols: [[
                    {field: 'id', title: '员工ID', width: 100, unresize: true, sort: true}
                    , {field: 'username', title: '姓名'}
                    , {field: 'email', title: '邮箱'}
                    , {field: 'phone', title: '电话'}
                    , {field: 'card', title: '身份证号'}
                    , {field: 'sex', title: '性别'}
                    , {field: 'address', title: '地址'}
                    , {field: 'dept', title: '部门', sort: true}
                    , {field: 'rname', title: '职位'}
                    , {field: 'entrydate', title: '入职时间'}
                    , {field: 'resignationdate', title: '离职时间'}
                ]]
            });
        }
    })
</script>
</body>
</html>
